#ifndef PARAMREFERLIMITSVIEW_H
#define PARAMREFERLIMITSVIEW_H

#include <QObject>
#include <QWidget>
#include <QSqlTableModel>
#include <QTextCodec>
#include "ParamGroupLimitsView.h"

namespace  Ui{
  class ParamReferLimits;
}

class ParamReferLimitsView : public QWidget
{
    Q_OBJECT
public:
    explicit ParamReferLimitsView(QWidget *parent = 0);
    ~ParamReferLimitsView();

     void closeEvent(QCloseEvent *event);
signals:

public slots:


public:
     enum Grade {
          Grade_user,
          Grade_admin,
          Grade_service,
          Grade_production,
          Grade_developer
          };

private:
     void initUi();
     void initModel();
     void initTable();
     void getGrade();





private slots:
    void on_Btn_new_clicked();
    void on_Btn_edit_clicked();
    void on_Btn_del_clicked();
    void on_Btn_default_clicked();

    void resultSelect(int  ,int);

    void updateTableView(int selectRow);



private:
    Ui::ParamReferLimits *ui;
    QSqlTableModel *pModel;
    QTextCodec *tc;
    ParamGroupLimitsView *paramGroupLimitsView;

    int m_SelectRow;

};

#endif // PARAMREFERLIMITSVIEW_H
